<?php
/**
 * Copyright (c) 2013 pipapai.com
 */

/* controller based router */
$this->create('resumes_index', '')->get()->action('PResumesController', 'folder');
$this->create('resumes_folder', 'folder')->get()->action('PResumesController', 'folder');
$this->create('resumes_jobpos', 'jobpos')->get()->action('PResumesController', 'jobpos');
$this->create('resumes_search', 'search')->get()->action('PResumesController', 'search');
$this->create('resumes_topsearch', 'topsearch')->get()->action('PResumesController', 'topsearch');
$this->create('resumes_toplist', 'toplist')->get()->action('PResumesController', 'toplist');

$this->create('resume_add', 'add')->get()->action('PResumeController', 'add'); 
$this->create('resume_remove', 'remove')->get()->action('PResumeController', 'remove'); 
$this->create('resume_update', 'update')->get()->action('PResumeController', 'update'); 
$this->create('resume_save', 'save')->get()->action('PResumeController', 'save'); 
$this->create('resume_view', 'view')->get()->action('PResumeController', 'view');

$this->create('resume_download', 'download{resume}')
	->requirements(array('resume' => '.*'))
	->actionInclude('resumes/download.php');

$this->create('resume_reviewpaper', 'reviewpaper')->get()->action('PResumeController', 'reviewPaper');
$this->create('resume_showsingleanswer', 'showsingleanswer')->get()->action('PResumeController', 'showSingleAnswer');
$this->create('resume_postscore', 'postscore')->post()->action('PResumeController', 'postScore');

$this->create('resumes_joblist', 'joblist')->get()->action('PResumesController', 'getjoblist');
$this->create('resumes_taglist', 'taglist')->get()->action('PResumesController', 'gettaglist');

$this->create('resume_showaddform', 'showaddform')->get()->action('PResumeController', 'showAddForm');
$this->create('resume_saveaddresume', 'saveaddresume')->post()->action('PResumeController', 'saveAddResume');
$this->create('resume_uploadresumeattchment','uploadresumeattachment')->post()->action('PResumeController','uploadResumeAttachment');

$this->create('resumes_offsitesearch', 'offsitesearch')->get()->action('PSearchController', 'offsitesearch');
$this->create('resume_offsiteresume', 'offsiteresume')->get()->action('PSearchController', 'offsiteresume');

$this->create('resumes_setsearchterm', 'setsearchterms')->post()->action('PSearchController', 'setSearchTerms');
$this->create('resume_showimportdialog','showimportdialog')->actionInclude('resumes/ajax/getimportdialog.php');
$this->create('resume_batchupload','batchupload')->post()->action('PResumeController','batchUpload');

$this->create('resume_addcomments','addcomments')->post()->action('PResumeController','addResumeComments');
$this->create('resume_getcomments','getcomments')->post()->action('PResumeController','getResumeComments');
$this->create('resume_delcomments','delcomments')->post()->action('PResumeController','deleteResumeComments');
